<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit">
  	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<title>${SYSTEM_NAME}</title>
	<link rel="stylesheet" href="${pageContext.request.contextPath}/static/layuiadmin/layui/css/layui.css?v=${FILE_VERSION}" media="all">
	<link rel="stylesheet" href="${pageContext.request.contextPath}/static/layuiadmin/style/admin.css?v=${FILE_VERSION}" media="all">
</head>
<body>
<div class="layui-fluid">
	<div class="layui-card">
		<div class="layui-card-body" style="padding: 15px;">
		<form class="layui-form" method="post" id="basicform" >
			<input id="id" name="id" value="${configure.id }" type="hidden">
			
			<div class="layui-form-item layui-form-text">
				<label class="layui-form-label layui-form-required">属性名称</label>
				<div class="layui-input-block">
					<input name="name" placeholder="请输入属性名称"
						class="layui-input" lay-verify="required" value="${configure.name }" maxlength="50">
				</div>
			</div>

			<div class="layui-form-item layui-form-text">
				<label class="layui-form-label">属性值</label>
				<div class="layui-input-block">
					<input name="value" placeholder="请输入属性值"
						   class="layui-input" value="${configure.value }" maxlength="100">
				</div>
			</div>

			<div class="layui-form-item layui-form-text">
				<label class="layui-form-label layui-form-required">属性描述</label>
				<div class="layui-input-block">
					<input name="desp" placeholder="请输入属性描述"
						   class="layui-input" lay-verify="required" value="${configure.desp }" maxlength="200">
				</div>
			</div>

			<div class="layui-form-item">
				<div class="layui-input-block">
					<button class="layui-btn layui-btn-primary layui-border-blue" lay-submit="" lay-filter="sub">立即提交</button>
					<button type="reset" class="layui-btn layui-btn-primary layui-border-blue">重置</button>
					<button type="button" class="layui-btn layui-btn-primary layui-border-red" onclick="closed()">关闭</button>
				</div>
			</div>
		</form>
	</div>
	</div>
</div>
	<script src="${pageContext.request.contextPath}/static/js/common-2.0.0.js?v=${FILE_VERSION}"></script>
	<script src="${pageContext.request.contextPath}/static/layuiadmin/layui/layui.js?v=${FILE_VERSION}"></script>
	<script src="${pageContext.request.contextPath}/static/js/jquery-3.3.1.min.js?v=${FILE_VERSION}"></script>
	<script src="${pageContext.request.contextPath}/static/js/common/coreInput-2.0.0.js?v=${FILE_VERSION}"></script>

	<script>
		layui.use(['form'], function() {
			var form = layui.form;

			form.on('submit(sub)', function(data){
				return saveOrUpdate($("#id").val(),"/sys/configure",data);
			});
		});
	</script>
</body>
</html>